package com.aorise.mapper.diagnosis;

import com.aorise.model.diagnosis.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


/**
* @Author:cat
* @Description 诊断任务设备mybatis接口类
* @Date:Created in 2019-06-24
* @Modified By:
*/
@Mapper
@Component(value = "planCameraMapper")
public interface PlanCameraMapper {

    /**
     * @Author:cat
     * @Description 根据诊断任务ID查询诊断任务设备
     * @params: map 查询条件Map
     * @Date:2019-06-24
     * @Return: List<PlanCameraModel> 诊断任务设备集合
     * @Modified By:
     */
    List<PlanCameraModel> getPlanCameraByDiagnosisId(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 新增诊断任务设备信息
     * @params: planCameraModel 诊断任务设备信息
     * @Date:2019-06-24
     * @Return: Integer 影响行数
     * @Modified By:
     */
    Integer addPlanCamera(PlanCameraModel planCameraModel) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 根据诊断任务ID删除诊断任务设备
     * @params: map 条件
     * @Date:2019-06-24
     * @Return: Integer 影响行数
     * @Modified By:
     */
    Integer deletePlanCamera(Map<String, Object> map) throws DataAccessException;
}